<?php
/**
 * Created by PhpStorm.
 * User: xiangfeng
 * Date: 2020/6/24
 * Time: 10:52 PM
 */
//Code number
define('NO_ORDER', 8);// 订单号
define('NO_PRODUCT_ADD', 3);// 商品编号
define('NO_MEMBER_ADD', 4);// 会员编号
define('NO_PAY_ORDER', 6);// 付款订单号
define('NO_SMS_OUT_ID', 40);//短信发送流水号

/************************  Redis配置 ************************/
define("REDIS_CONAFIG", [
    'host' => env('redis.host', '127.0.0.1'),
    'port' => env('redis.port', '6379'),
    'password' => env('redis.password', ''),//
    'select' => env('redis.select', 0),
    'timeout' => env('redis.timeout', 0),
    'expire' => env('redis.expire', 0),
    'persistent' => false,
    'prefix' => '',
]);

define("USER_TOKEN_EXPIRE_TIME", 60 * 60 * 12);//expire_time
define("USER_TOKEN_PREFIX", 'user_token:');
define("USER_FARIAEND_JOIN_LIST", 'friend:join_list');//加好友通知
define("USER_FARIAEND_AUDIT_LIST", 'friend:audit_list');//好友申请审核

//公众号
define('APP_KEY', 'wxda27e4ab483f8438');
define('APP_SECRET', '670eba6437824e52f0f836a032df8c29');
//小程序通知
define('TMPLIDS_ARR', [
    0 => ['name' => '好友申请通知', 'path' => 'pages/user/index', 'value' => '6jcSA5XHhm8Kv-mJULj-81Yf_nKXuDSxWtrNAEah1hw'],//{"touser":"ovsuJ4iR7Yd-PcGdJ0lrSzPbZGxg","template_id":"6jcSA5XHhm8Kv-mJULj-81Yf_nKXuDSxWtrNAEah1hw","miniprogram_state":"developer","page":"pages/news/news_list","data":{"date1":{"value":"2022-04-20"},"name2":{"value":"张三"},"thing3":{"value":"我是张三，麻烦通过一下"}}}
    1 => ['name' => '审核结果通知', 'path' => 'pages/user/index', 'value' => 'Zqu48QaJVSmKy_-uOnd35UxhbMp3WG0-pVp7LgPGeFk'],//{"touser":"ovsuJ4iR7Yd-PcGdJ0lrSzPbZGxg","template_id":"Zqu48QaJVSmKy_-uOnd35UxhbMp3WG0-pVp7LgPGeFk","miniprogram_state":"developer","page":"pages/news/news_list","data":{"thing30":{"value":"用户实名认证通知"},"phrase1":{"value":"不通过"},"thing7":{"value":"如有疑问请联系客服"}}}
]);

/************************  图片相关 ************************/
define("ALI_ACCESS_KEY_ID", 'LTAI5tSRVrrs13RqCXnJD1yD');
define("ALI_ACCESS_KEY_SECRET", "mBqvQDbjD40N8x2EZ6h3a1Uyb7L8nW");
define("ALI_ENDPOINT", 'oss-cn-hangzhou.aliyuncs.com');
define("BUCKET", 'hdjj');
define('DEFAULT_IMAGE_URL', env('url.image', 'https://hdimg.hzrwin.cn'));//图片默认访问链接
define("DEFAULT_IMAGE_PATH", "qtzj/");


//系统参数
define('DS', DIRECTORY_SEPARATOR);
defined('APP_PATH') or define('APP_PATH', dirname($_SERVER['SCRIPT_FILENAME']) . DS);
defined('ROOT_PATH') or define('ROOT_PATH', dirname(realpath(APP_PATH)) . DS);